//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.restaurant.application.bookingset.support;

import com.google.common.collect.Lists;
import com.nebutown.commonunits.dataface.definitions.TimeInterval;
import com.nebutown.generation.Convert;
import com.nebutown.generation.PickableBean;
import java.util.List;

public class BookingPageData implements PickableBean {
    public static final String FN_SHOPNAME = "shopName";
    public static final String FN_DATEINTERVAL = "dateInterval";
    public static final String FN_DEFAULTTIME = "defaultTime";
    public static final String FN_TIMES0 = "times0";
    public static final String FN_TIMES1 = "times1";
    public static final String FN_TIMES2 = "times2";
    public static final String FN_TIMES3 = "times3";
    public static final String FN_TIMES4 = "times4";
    public static final String FN_TIMES5 = "times5";
    public static final String FN_TIMES6 = "times6";
    public static final String FN_TIMES7 = "times7";
    public static final String FN_TIMES8 = "times8";
    public static final String FN_TIMES9 = "times9";
    public static final String FN_TIMES10 = "times10";
    public static final String FN_DEFAULTSERVICE = "defaultService";
    public static final String FN_SERVICE0 = "service0";
    public static final String FN_SERVICE1 = "service1";
    public static final String FN_SERVICE2 = "service2";
    public static final String FN_SERVICE3 = "service3";
    public static final String FN_SERVICE4 = "service4";
    public static final String FN_SERVICE5 = "service5";
    public static final List<String> FIELD_NAMES = Lists.newArrayList(new String[]{"shopName", "dateInterval", "defaultTime", "times0", "times1", "times2", "times3", "times4", "times5", "times6", "times7", "times8", "times9", "times10", "defaultService", "service0", "service1", "service2", "service3", "service4", "service5"});
    private String shopName;
    private TimeInterval dateInterval;
    private TimeInterval defaultTime;
    private TimeInterval times0;
    private TimeInterval times1;
    private TimeInterval times2;
    private TimeInterval times3;
    private TimeInterval times4;
    private TimeInterval times5;
    private TimeInterval times6;
    private TimeInterval times7;
    private TimeInterval times8;
    private TimeInterval times9;
    private TimeInterval times10;
    private String defaultService;
    private String service0;
    private String service1;
    private String service2;
    private String service3;
    private String service4;
    private String service5;

    public BookingPageData(String shopName, TimeInterval dateInterval, TimeInterval defaultTime, TimeInterval times0, TimeInterval times1, TimeInterval times2, TimeInterval times3, TimeInterval times4, TimeInterval times5, TimeInterval times6, TimeInterval times7, TimeInterval times8, TimeInterval times9, TimeInterval times10, String defaultService, String service0, String service1, String service2, String service3, String service4, String service5) {
        this.setShopName(shopName);
        this.setDateInterval(dateInterval);
        this.setDefaultTime(defaultTime);
        this.setTimes0(times0);
        this.setTimes1(times1);
        this.setTimes2(times2);
        this.setTimes3(times3);
        this.setTimes4(times4);
        this.setTimes5(times5);
        this.setTimes6(times6);
        this.setTimes7(times7);
        this.setTimes8(times8);
        this.setTimes9(times9);
        this.setTimes10(times10);
        this.setDefaultService(defaultService);
        this.setService0(service0);
        this.setService1(service1);
        this.setService2(service2);
        this.setService3(service3);
        this.setService4(service4);
        this.setService5(service5);
    }

    public BookingPageData() {
    }

    public BookingPageData duplicate() {
        BookingPageData result = new BookingPageData();
        result.shopName = this.shopName;
        result.dateInterval = this.dateInterval == null ? null : this.dateInterval.duplicate();
        result.defaultTime = this.defaultTime == null ? null : this.defaultTime.duplicate();
        result.times0 = this.times0 == null ? null : this.times0.duplicate();
        result.times1 = this.times1 == null ? null : this.times1.duplicate();
        result.times2 = this.times2 == null ? null : this.times2.duplicate();
        result.times3 = this.times3 == null ? null : this.times3.duplicate();
        result.times4 = this.times4 == null ? null : this.times4.duplicate();
        result.times5 = this.times5 == null ? null : this.times5.duplicate();
        result.times6 = this.times6 == null ? null : this.times6.duplicate();
        result.times7 = this.times7 == null ? null : this.times7.duplicate();
        result.times8 = this.times8 == null ? null : this.times8.duplicate();
        result.times9 = this.times9 == null ? null : this.times9.duplicate();
        result.times10 = this.times10 == null ? null : this.times10.duplicate();
        result.defaultService = this.defaultService;
        result.service0 = this.service0;
        result.service1 = this.service1;
        result.service2 = this.service2;
        result.service3 = this.service3;
        result.service4 = this.service4;
        result.service5 = this.service5;
        return result;
    }

    public String toString() {
        return Convert.toJson(this);
    }

    public String getShopName() {
        return this.shopName;
    }

    public void setShopName(String value) {
        this.shopName = value;
    }

    public BookingPageData withShopName(String value) {
        this.setShopName(value);
        return this;
    }

    public BookingPageData withShopName(String value, String defaultValue) {
        this.setShopName(value == null ? defaultValue : value);
        return this;
    }

    public TimeInterval getDateInterval() {
        return this.dateInterval;
    }

    public void setDateInterval(TimeInterval value) {
        this.dateInterval = value;
    }

    public BookingPageData withDateInterval(TimeInterval value) {
        this.setDateInterval(value);
        return this;
    }

    public BookingPageData withDateInterval(TimeInterval value, TimeInterval defaultValue) {
        this.setDateInterval(value == null ? defaultValue : value);
        return this;
    }

    public TimeInterval getDefaultTime() {
        return this.defaultTime;
    }

    public void setDefaultTime(TimeInterval value) {
        this.defaultTime = value;
    }

    public BookingPageData withDefaultTime(TimeInterval value) {
        this.setDefaultTime(value);
        return this;
    }

    public BookingPageData withDefaultTime(TimeInterval value, TimeInterval defaultValue) {
        this.setDefaultTime(value == null ? defaultValue : value);
        return this;
    }

    public TimeInterval getTimes0() {
        return this.times0;
    }

    public void setTimes0(TimeInterval value) {
        this.times0 = value;
    }

    public BookingPageData withTimes0(TimeInterval value) {
        this.setTimes0(value);
        return this;
    }

    public BookingPageData withTimes0(TimeInterval value, TimeInterval defaultValue) {
        this.setTimes0(value == null ? defaultValue : value);
        return this;
    }

    public TimeInterval getTimes1() {
        return this.times1;
    }

    public void setTimes1(TimeInterval value) {
        this.times1 = value;
    }

    public BookingPageData withTimes1(TimeInterval value) {
        this.setTimes1(value);
        return this;
    }

    public BookingPageData withTimes1(TimeInterval value, TimeInterval defaultValue) {
        this.setTimes1(value == null ? defaultValue : value);
        return this;
    }

    public TimeInterval getTimes2() {
        return this.times2;
    }

    public void setTimes2(TimeInterval value) {
        this.times2 = value;
    }

    public BookingPageData withTimes2(TimeInterval value) {
        this.setTimes2(value);
        return this;
    }

    public BookingPageData withTimes2(TimeInterval value, TimeInterval defaultValue) {
        this.setTimes2(value == null ? defaultValue : value);
        return this;
    }

    public TimeInterval getTimes3() {
        return this.times3;
    }

    public void setTimes3(TimeInterval value) {
        this.times3 = value;
    }

    public BookingPageData withTimes3(TimeInterval value) {
        this.setTimes3(value);
        return this;
    }

    public BookingPageData withTimes3(TimeInterval value, TimeInterval defaultValue) {
        this.setTimes3(value == null ? defaultValue : value);
        return this;
    }

    public TimeInterval getTimes4() {
        return this.times4;
    }

    public void setTimes4(TimeInterval value) {
        this.times4 = value;
    }

    public BookingPageData withTimes4(TimeInterval value) {
        this.setTimes4(value);
        return this;
    }

    public BookingPageData withTimes4(TimeInterval value, TimeInterval defaultValue) {
        this.setTimes4(value == null ? defaultValue : value);
        return this;
    }

    public TimeInterval getTimes5() {
        return this.times5;
    }

    public void setTimes5(TimeInterval value) {
        this.times5 = value;
    }

    public BookingPageData withTimes5(TimeInterval value) {
        this.setTimes5(value);
        return this;
    }

    public BookingPageData withTimes5(TimeInterval value, TimeInterval defaultValue) {
        this.setTimes5(value == null ? defaultValue : value);
        return this;
    }

    public TimeInterval getTimes6() {
        return this.times6;
    }

    public void setTimes6(TimeInterval value) {
        this.times6 = value;
    }

    public BookingPageData withTimes6(TimeInterval value) {
        this.setTimes6(value);
        return this;
    }

    public BookingPageData withTimes6(TimeInterval value, TimeInterval defaultValue) {
        this.setTimes6(value == null ? defaultValue : value);
        return this;
    }

    public TimeInterval getTimes7() {
        return this.times7;
    }

    public void setTimes7(TimeInterval value) {
        this.times7 = value;
    }

    public BookingPageData withTimes7(TimeInterval value) {
        this.setTimes7(value);
        return this;
    }

    public BookingPageData withTimes7(TimeInterval value, TimeInterval defaultValue) {
        this.setTimes7(value == null ? defaultValue : value);
        return this;
    }

    public TimeInterval getTimes8() {
        return this.times8;
    }

    public void setTimes8(TimeInterval value) {
        this.times8 = value;
    }

    public BookingPageData withTimes8(TimeInterval value) {
        this.setTimes8(value);
        return this;
    }

    public BookingPageData withTimes8(TimeInterval value, TimeInterval defaultValue) {
        this.setTimes8(value == null ? defaultValue : value);
        return this;
    }

    public TimeInterval getTimes9() {
        return this.times9;
    }

    public void setTimes9(TimeInterval value) {
        this.times9 = value;
    }

    public BookingPageData withTimes9(TimeInterval value) {
        this.setTimes9(value);
        return this;
    }

    public BookingPageData withTimes9(TimeInterval value, TimeInterval defaultValue) {
        this.setTimes9(value == null ? defaultValue : value);
        return this;
    }

    public TimeInterval getTimes10() {
        return this.times10;
    }

    public void setTimes10(TimeInterval value) {
        this.times10 = value;
    }

    public BookingPageData withTimes10(TimeInterval value) {
        this.setTimes10(value);
        return this;
    }

    public BookingPageData withTimes10(TimeInterval value, TimeInterval defaultValue) {
        this.setTimes10(value == null ? defaultValue : value);
        return this;
    }

    public String getDefaultService() {
        return this.defaultService;
    }

    public void setDefaultService(String value) {
        this.defaultService = value;
    }

    public BookingPageData withDefaultService(String value) {
        this.setDefaultService(value);
        return this;
    }

    public BookingPageData withDefaultService(String value, String defaultValue) {
        this.setDefaultService(value == null ? defaultValue : value);
        return this;
    }

    public String getService0() {
        return this.service0;
    }

    public void setService0(String value) {
        this.service0 = value;
    }

    public BookingPageData withService0(String value) {
        this.setService0(value);
        return this;
    }

    public BookingPageData withService0(String value, String defaultValue) {
        this.setService0(value == null ? defaultValue : value);
        return this;
    }

    public String getService1() {
        return this.service1;
    }

    public void setService1(String value) {
        this.service1 = value;
    }

    public BookingPageData withService1(String value) {
        this.setService1(value);
        return this;
    }

    public BookingPageData withService1(String value, String defaultValue) {
        this.setService1(value == null ? defaultValue : value);
        return this;
    }

    public String getService2() {
        return this.service2;
    }

    public void setService2(String value) {
        this.service2 = value;
    }

    public BookingPageData withService2(String value) {
        this.setService2(value);
        return this;
    }

    public BookingPageData withService2(String value, String defaultValue) {
        this.setService2(value == null ? defaultValue : value);
        return this;
    }

    public String getService3() {
        return this.service3;
    }

    public void setService3(String value) {
        this.service3 = value;
    }

    public BookingPageData withService3(String value) {
        this.setService3(value);
        return this;
    }

    public BookingPageData withService3(String value, String defaultValue) {
        this.setService3(value == null ? defaultValue : value);
        return this;
    }

    public String getService4() {
        return this.service4;
    }

    public void setService4(String value) {
        this.service4 = value;
    }

    public BookingPageData withService4(String value) {
        this.setService4(value);
        return this;
    }

    public BookingPageData withService4(String value, String defaultValue) {
        this.setService4(value == null ? defaultValue : value);
        return this;
    }

    public String getService5() {
        return this.service5;
    }

    public void setService5(String value) {
        this.service5 = value;
    }

    public BookingPageData withService5(String value) {
        this.setService5(value);
        return this;
    }

    public BookingPageData withService5(String value, String defaultValue) {
        this.setService5(value == null ? defaultValue : value);
        return this;
    }

    public Object getValueOf(String name) {
        byte var3 = -1;
        switch(name.hashCode()) {
            case -1313909787:
                if (name.equals("times10")) {
                    var3 = 13;
                }
                break;
            case -1037194605:
                if (name.equals("dateInterval")) {
                    var3 = 1;
                }
                break;
            case -873668182:
                if (name.equals("times0")) {
                    var3 = 3;
                }
                break;
            case -873668181:
                if (name.equals("times1")) {
                    var3 = 4;
                }
                break;
            case -873668180:
                if (name.equals("times2")) {
                    var3 = 5;
                }
                break;
            case -873668179:
                if (name.equals("times3")) {
                    var3 = 6;
                }
                break;
            case -873668178:
                if (name.equals("times4")) {
                    var3 = 7;
                }
                break;
            case -873668177:
                if (name.equals("times5")) {
                    var3 = 8;
                }
                break;
            case -873668176:
                if (name.equals("times6")) {
                    var3 = 9;
                }
                break;
            case -873668175:
                if (name.equals("times7")) {
                    var3 = 10;
                }
                break;
            case -873668174:
                if (name.equals("times8")) {
                    var3 = 11;
                }
                break;
            case -873668173:
                if (name.equals("times9")) {
                    var3 = 12;
                }
                break;
            case -436955986:
                if (name.equals("defaultTime")) {
                    var3 = 2;
                }
                break;
            case -345481567:
                if (name.equals("shopName")) {
                    var3 = 0;
                }
                break;
            case -306696908:
                if (name.equals("defaultService")) {
                    var3 = 14;
                }
                break;
            case 1379209243:
                if (name.equals("service0")) {
                    var3 = 15;
                }
                break;
            case 1379209244:
                if (name.equals("service1")) {
                    var3 = 16;
                }
                break;
            case 1379209245:
                if (name.equals("service2")) {
                    var3 = 17;
                }
                break;
            case 1379209246:
                if (name.equals("service3")) {
                    var3 = 18;
                }
                break;
            case 1379209247:
                if (name.equals("service4")) {
                    var3 = 19;
                }
                break;
            case 1379209248:
                if (name.equals("service5")) {
                    var3 = 20;
                }
        }

        switch(var3) {
            case 0:
                return this.getShopName();
            case 1:
                return this.getDateInterval();
            case 2:
                return this.getDefaultTime();
            case 3:
                return this.getTimes0();
            case 4:
                return this.getTimes1();
            case 5:
                return this.getTimes2();
            case 6:
                return this.getTimes3();
            case 7:
                return this.getTimes4();
            case 8:
                return this.getTimes5();
            case 9:
                return this.getTimes6();
            case 10:
                return this.getTimes7();
            case 11:
                return this.getTimes8();
            case 12:
                return this.getTimes9();
            case 13:
                return this.getTimes10();
            case 14:
                return this.getDefaultService();
            case 15:
                return this.getService0();
            case 16:
                return this.getService1();
            case 17:
                return this.getService2();
            case 18:
                return this.getService3();
            case 19:
                return this.getService4();
            case 20:
                return this.getService5();
            default:
                return null;
        }
    }

    public void setValueOf(String name, Object value) {
        byte var4 = -1;
        switch(name.hashCode()) {
            case -1313909787:
                if (name.equals("times10")) {
                    var4 = 13;
                }
                break;
            case -1037194605:
                if (name.equals("dateInterval")) {
                    var4 = 1;
                }
                break;
            case -873668182:
                if (name.equals("times0")) {
                    var4 = 3;
                }
                break;
            case -873668181:
                if (name.equals("times1")) {
                    var4 = 4;
                }
                break;
            case -873668180:
                if (name.equals("times2")) {
                    var4 = 5;
                }
                break;
            case -873668179:
                if (name.equals("times3")) {
                    var4 = 6;
                }
                break;
            case -873668178:
                if (name.equals("times4")) {
                    var4 = 7;
                }
                break;
            case -873668177:
                if (name.equals("times5")) {
                    var4 = 8;
                }
                break;
            case -873668176:
                if (name.equals("times6")) {
                    var4 = 9;
                }
                break;
            case -873668175:
                if (name.equals("times7")) {
                    var4 = 10;
                }
                break;
            case -873668174:
                if (name.equals("times8")) {
                    var4 = 11;
                }
                break;
            case -873668173:
                if (name.equals("times9")) {
                    var4 = 12;
                }
                break;
            case -436955986:
                if (name.equals("defaultTime")) {
                    var4 = 2;
                }
                break;
            case -345481567:
                if (name.equals("shopName")) {
                    var4 = 0;
                }
                break;
            case -306696908:
                if (name.equals("defaultService")) {
                    var4 = 14;
                }
                break;
            case 1379209243:
                if (name.equals("service0")) {
                    var4 = 15;
                }
                break;
            case 1379209244:
                if (name.equals("service1")) {
                    var4 = 16;
                }
                break;
            case 1379209245:
                if (name.equals("service2")) {
                    var4 = 17;
                }
                break;
            case 1379209246:
                if (name.equals("service3")) {
                    var4 = 18;
                }
                break;
            case 1379209247:
                if (name.equals("service4")) {
                    var4 = 19;
                }
                break;
            case 1379209248:
                if (name.equals("service5")) {
                    var4 = 20;
                }
        }

        switch(var4) {
            case 0:
                this.setShopName((String)value);
                return;
            case 1:
                this.setDateInterval((TimeInterval)value);
                return;
            case 2:
                this.setDefaultTime((TimeInterval)value);
                return;
            case 3:
                this.setTimes0((TimeInterval)value);
                return;
            case 4:
                this.setTimes1((TimeInterval)value);
                return;
            case 5:
                this.setTimes2((TimeInterval)value);
                return;
            case 6:
                this.setTimes3((TimeInterval)value);
                return;
            case 7:
                this.setTimes4((TimeInterval)value);
                return;
            case 8:
                this.setTimes5((TimeInterval)value);
                return;
            case 9:
                this.setTimes6((TimeInterval)value);
                return;
            case 10:
                this.setTimes7((TimeInterval)value);
                return;
            case 11:
                this.setTimes8((TimeInterval)value);
                return;
            case 12:
                this.setTimes9((TimeInterval)value);
                return;
            case 13:
                this.setTimes10((TimeInterval)value);
                return;
            case 14:
                this.setDefaultService((String)value);
                return;
            case 15:
                this.setService0((String)value);
                return;
            case 16:
                this.setService1((String)value);
                return;
            case 17:
                this.setService2((String)value);
                return;
            case 18:
                this.setService3((String)value);
                return;
            case 19:
                this.setService4((String)value);
                return;
            case 20:
                this.setService5((String)value);
                return;
            default:
        }
    }

    public boolean hasField(String name) {
        return FIELD_NAMES.contains(name);
    }

    public int hashCode() {
        return this.signature().hashCode();
    }

    public boolean equals(Object o) {
        return !(o instanceof BookingPageData) ? false : this.signature().equals(((BookingPageData)o).signature());
    }

    public String signature() {
        throw new RuntimeException("Bean BookingPageData has no signature defined, no hash code or equals possible.");
    }
}
